$(".liItem").click(function() {
    $(this).addClass("liItemActive").siblings().removeClass("liItemActive")
})

$(function() {
    // fullpage设置
    $('#bodyCont').fullpage({
        sectionsColor: ['#1bbc9b', '#4BBFC3', , '#2a3c54'],
        slidesColor: ["#dc5347", "#18a15f", "#4c8cf5", ],
        controlArrowColor: "red",
        loopBottom: true,
        navigation: true,
        navigationColor: "#6090b6"
    });

    $(window).resize(function() {
        autoScrolling();
        $(".firstCont").height($(window).height() - 50)
    });

    function autoScrolling() {
        var $ww = $(window).width();
        if ($ww < 1024) {
            $.fn.fullpage.setAutoScrolling(false);
        } else {
            $.fn.fullpage.setAutoScrolling(true);
        }
    }
    autoScrolling();

    $(".firstCont").height($(window).height() - 50)

    // 字体动画
    $(".animateTxt").show().addClass("animated bounceOut")
    setTimeout(function() {
        $(".animateTxt").removeClass("bounceOut")
    }, 1000)

    $(".imgList img").hover(
        function() {
            $(this).removeClass("activeImg")
            $(this).addClass("activeImg")
        },
        function() {
            $(this).removeClass("activeImg")

        }
    )
});